import type { LoginParams, LoginRes } from "@/types/user"
import { request } from "@/utils/request"

export const loginAPI = (data: LoginParams) => {
  // 返回 Promise
  return request<LoginRes>('/v1_0/authorizations', 'POST', data)
}
